/*
 * @Author: linZeJian
 * @Date: 2022-04-26 14:12:08
 * @LastEditors: linZeJian
 * @LastEditTime: 2022-04-26 14:16:52
 * @Description: 
 */
import request from '@/utils/request'

class IdaaS {
  constructor() {
  }
  //获取子应用
  async getSubApps() {
    let url = `/idaas/api/subapps`
    let res = await request.get(url)
    return res
  }
  //获取菜单
  async getMenus(id) {
    let url = `/idaas/api/menus`
    let res = await request.get(url)
    return res
  }
  //获取应用详情
  async getApp() {
    let url = `/idaas/api/apps/me`
    let res = await request.get(url)
    return res
  }
  //获取个人信息
  async userinfo(){
    console.log("a")
    let url = `/idaas/api/me`
    let res = await request.get(url)
    return res
  }

}

let idaas = new IdaaS()
export default idaas